UCF STIG Viewer Logo
Changes are coming to https://stigviewer.com. Take our survey to help us understand your usage and how we can better serve you in the future.
Take Survey

The Kubernetes Kubelet must have anonymous authentication disabled.


Overview

Finding ID Version Rule ID IA Controls Severity
V-242391 CNTR-K8-000370 SV-242391r863967_rule High
Description
A user who has access to the Kubelet essentially has root access to the nodes contained within the Kubernetes Control Plane. To control access, users must be authenticated and authorized. By allowing anonymous connections, the controls put in place to secure the Kubelet can be bypassed. Setting anonymous authentication to "false" also disables unauthenticated requests from kubelets. While there are instances where anonymous connections may be needed (e.g., health checks) and Role-Based Access Controls (RBAC) are in place to limit the anonymous access, this access must be disabled and only enabled when necessary.
STIG Date
Kubernetes Security Technical Implementation Guide 2022-09-13

Details

Check Text ( C-45666r863776_chk )
Run the following command on each Worker Node:
ps -ef | grep kubelet

Verify that the --anonymous-auth argument exists and is set to "false".

If the --anonymous-auth argument exists and is not set to "false", this is a finding.

If the --anonymous-auth argument does not exist, check the Control Plane Kubelet config file:
On the Kubernetes Control Plane, run the command:
ps -ef | grep kubelet
Check the config file (path identified by: --config).

Verify "authentication: anonymous: enabled=false". If this is not set to "false", this is a finding.

If "--anonymous-auth=false" argument does not exist on the worker nodes or "authentication: anonymous: enabled=false" does not exist on the Control Plane, this is a finding.
Fix Text (F-45624r863777_fix)
Edit the Kubernetes Kubelet file in the --config directory on the Kubernetes Control Plane:
Set "authentication: anonymous: enabled=false"

If using worker node arguments, edit the kubelet service file (identified in the --config directory):
On each Worker Node:
set the parameter in KUBELET_SYSTEM_PODS_ARGS variable to
"--anonymous-auth=false".

Reset Kubelet service using the following command:
service kubelet restart